<!DOCTYPE html>
<html lang="en">

<head>
    <title>正在播放。。。</title>
    <meta charset="UTF-8">
    <meta name="description" content="怡菲艺术培训中心，是一所集青少儿才艺培训、成人艺术培训、艺术课程研发、艺考辅导、留学艺术辅导、企业服务、参赛培训等为一体的综合性艺术教育培训平台" />
    <meta name="keywords" content="少儿美术培训班,美术培训班,艺考考级,声乐培训,学唱歌,学跳舞,舞蹈培训班,吉他培训班,钢琴培训班" />
    <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>
        html,
        body {
            height: 100%;
            overflow: hidden;
            text-align: center;
        }
        
        * {
            margin: 0;
            padding: 0;
        }
        
        video {
            height: 100%;
            width: 100%;
            background: #333;
        }
        
        img {
            position: absolute;
            left: 50%;
            top: 50%;
            margin-left: -75px;
            margin-top: -75px;
            display: none;
            z-index: 99;
            cursor: pointer;
        }
    </style>
</head>

<body>
    <img src="./img/bofang.png" alt="" play="yes">
    <video controls="controls">
        <source data-src="http://www.yifeiyishu.com/edu/video/yinyue/IMG_2660.mp4" type="video/mp4" />
    </video>
</body>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/common.js?v=5"></script>
<script>
    $('video').on('contextmenu', function() {
        return false;
    });

    var url = GetQueryString('v');
    var md = $('video').get(0);
    if (url.length > 0) {
        md.src = Base64.decode(url);
    }

    // md.autoplay = 'autoplay';
    $('img,video').on('click', function() {
        if ($('img').attr('play') == 'play') {
            $('img').attr('play', 'no');
            $('img').show();
            md.pause();
        } else {
            $('img').attr('play', 'play');
            $('img').hide();
            md.play();
        }
    });

    md.addEventListener("ended", function() {
        $('img').show();
    })
</script>

</html>